﻿using AutoMapper;
using SH.Customer.Application.IApplication.ICustomer;
using SH.Customer.Application.IApplication.IEquities;
using SH.Customer.Application.IApplication.IMenberCard;
using SH.Customer.Domain.CustomerClass;

namespace SH.Customer.Read.API.Profiles
{
    public class MappingProfile : Profile
    {
        public MappingProfile()
        {
            CreateMap<CustomerDto,CustomerInfo>().ReverseMap();
            CreateMap<CustomerUpdDto,CustomerInfo>().ReverseMap();

            CreateMap<EquitiesDto,Equities>().ReverseMap();
            CreateMap<EquitesUpdDto, Equities>().ReverseMap();

            CreateMap<MemberCardDto, MemberCard>().ReverseMap();
        }
    }
}
